/**
 * 
 */
package cn.gov.msa.service;

import java.util.List;

import org.springframework.stereotype.Service;

import cn.gov.msa.model.DeclareItem;
import cn.gov.msa.model.DeclareItemMaterial;
import cn.gov.msa.model.Dictionary;
import cn.gov.msa.model.DictionaryDetail;
import cn.gov.msa.model.File;
import cn.gov.msa.model.ServiceGuide;
import net.sf.json.JSONObject;

/**
 * @author 何宇江
 *
 */

@Service
public interface DeclareItemService {	
	public List<DeclareItem> selectData(int currentPage, int pageRecord, DeclareItem declareItem) throws Exception;
	
	public DeclareItem getInfoByItemno(String itemno) throws Exception;

	public boolean updateData(DeclareItem declareItem, List<DeclareItemMaterial> declareItemMaterialList) throws Exception;
	
	public boolean saveData(DeclareItem declareItem, List<DeclareItemMaterial> declareItemMaterialList) throws Exception;

	public int delete(String itemno) throws Exception;
	
	 ServiceGuide selectByPrimaryKey(String sgid);
	 
	 File selectFile(String fileId);
}
